function subdim = fit_subplot(alldim)
%Thomas Stevens - Lim Lab
%opened 01/15/12
%generate indices of best fit for 2d subplotting
subdim(1) = round(sqrt(alldim));
subdim(2) = ceil(alldim/subdim(1));
end